<?php

namespace addons\Holiday\common\enums;
use common\enums\BaseEnum;
/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class HolidayEnum extends BaseEnum
{
    const ThingsDay = 0;
    const SickDay = 1;
    const MarriedDay = 2;
    const RestDay = 3;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::ThingsDay => '事假',
            self::SickDay => '病假',
            self::MarriedDay => '婚假',
            self::RestDay => '工休假',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}